package objetos

import scala.collection.mutable.ArrayBuffer
import org.joda.time.DateTime
import org.joda.time.LocalDate

object ServicioMetereologico {
  var diasDeLluvia: ArrayBuffer[LocalDate] = ArrayBuffer()

  def agregarDiaLLuvia(dia: DateTime) = diasDeLluvia += dia.toLocalDate

  def esDiaDeLluvia(dia: DateTime) = diasDeLluvia.contains(dia.toLocalDate)

}